Crate cetkaik_core

source ·
Expand description

Core data types and whatnot for cetkaik, a board game. See https://sites.google.com/view/cet2kaik/the-standardized-rule-in-english for more context. /机戦(セットカイク)のための基本的なデータ型など。

Modules

Defines things in the absolute term: “which piece lies in the square LIA?”/絶対座標ベース。「LIAのマスにはどの駒がある?」という話をする
Defines a perspective, with which you can transform between the absolute and the relative/視点を定めることで、相対座標と絶対座標の間を変換できるようにする
Defines things in terms of relative view: “which piece is opponent’s?”/相対座標ベース。「どの駒が相手の駒?」という話をする

Macros

A shortcut macro for creating Color. /Color を楽に構築するためのマクロ。
A shortcut macro for creating NonTam2Piece, which is essentially a tuple of the color and the profession. /NonTam2Piece を楽に構築するためのマクロ。
A shortcut macro for creating Profession. /Profession を楽に構築するためのマクロ。

Enums

Denotes the color of a piece/駒の色を表す。
Denotes the profession of a piece/駒の職業を表す。

Functions

Serializes Color./Colorを文字列に変換する。
Serializes Profession./Professionを文字列にする。